# +----------------------------------------------------------------------
# | Pink [ A modern python web framework ]
# +----------------------------------------------------------------------
# | Copyright (c) 2023 http:#unnnnn.com All rights reserved.
# +----------------------------------------------------------------------
# | Author: chenjianhua <unnnnn@foxmail.com>
# +----------------------------------------------------------------------

import os

from .Command import Command


class UpCommand(Command):
    name = 'up'
    description = 'Brings the server out of maintenance state.'
    """
    Brings the server out of maintenance state.

    up
    """

    def handle(self):
        os.remove(".down")
        self.info("Server is online again !")
